package com.xiaodu.acer.phoneplay.presenter.contract;

import com.xiaodu.acer.phoneplay.bean.AppInfo;
import com.xiaodu.acer.phoneplay.bean.downloadbean.DownloadMission;
import com.xiaodu.acer.phoneplay.common.apkparset.AndroidApk;

import java.util.List;

import io.reactivex.Observable;
import library.base.BaseModel;
import library.base.BaseView;
import retrofit2.Retrofit;
import zlc.season.rxdownload3.core.Mission;


public interface AppManagerContract {


    interface View extends BaseView {

        void showDownloading(List<DownloadMission> downloadMissions);

        void showApps(List<AndroidApk> apps);

        void showUpdateApps(List<AppInfo> appInfos);


    }

    interface Model extends BaseModel {

        Observable<List<Mission>> getDownloadMissions();


        Retrofit getRetrofit();

        Observable<List<AndroidApk>> getLocalApks();

        Observable<List<AndroidApk>> getInstalledApps();


    }


}
